﻿@model GitCandy.Models.UserModel

@{
    ViewBag.Title = string.Format(SR.Shared_TitleFormat, SR.Account_CreateTitle);
}

<h4>@SR.Account_CreateTitle</h4>

<div class="span8">
    @using (Html.BeginForm("Create", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
    {
        <div class="row">
            @Html.LabelFor(s => s.Name, new { @class = "span3 text-right lead muted" })
            <span class="span1"></span>
            @Html.TextBoxFor(s => s.Name, new { @class = "span4 text-left lead" })
        </div>
        <div class="row">
            <span class="text-error span5 offset4">
                @Html.ValidationMessageFor(s => s.Name)
            </span>
        </div>

        <div class="row">
            @Html.LabelFor(s => s.Nickname, new { @class = "span3 text-right lead muted" })
            <span class="span1"></span>
            @Html.TextBoxFor(s => s.Nickname, new { @class = "span4 text-left lead" })
        </div>
        <div class="row">
            <span class="text-error span5 offset4">
                @Html.ValidationMessageFor(s => s.Nickname)
            </span>
        </div>

        <div class="row">
            @Html.LabelFor(s => s.Password, new { @class = "span3 text-right lead muted" })
            <span class="span1"></span>
            @Html.PasswordFor(s => s.Password, new { @class = "span4 text-left lead" })
        </div>
        <div class="row">
            <span class="text-error span5 offset4">
                @Html.ValidationMessageFor(s => s.Password)
            </span>
        </div>

        <div class="row">
            @Html.LabelFor(s => s.ConformPassword, new { @class = "span3 text-right lead muted" })
            <span class="span1"></span>
            @Html.PasswordFor(s => s.ConformPassword, new { @class = "span4 text-left lead" })
        </div>
        <div class="row">
            <span class="text-error span5 offset4">
                @Html.ValidationMessageFor(s => s.ConformPassword)
            </span>
        </div>

        <div class="row">
            @Html.LabelFor(s => s.Email, new { @class = "span3 text-right lead muted" })
            <span class="span1"></span>
            @Html.TextBoxFor(s => s.Email, new { @class = "span4 text-left lead" })
        </div>
        <div class="row">
            <span class="text-error span5 offset4">
                @Html.ValidationMessageFor(s => s.Email)
            </span>
        </div>

        <div class="row">
            @Html.LabelFor(s => s.Description, new { @class = "span3 text-right lead muted" })
            <span class="span1"></span>
            @Html.TextAreaFor(s => s.Description, 4, 0, new { @class = "span4 text-left lead" })
        </div>
        <div class="row">
            <span class="text-error span5 offset4">
                @Html.ValidationMessageFor(s => s.Description)
            </span>
        </div>

        @Html.ValidationSummary(true, SR.Account_CreationUnsuccessfull, new { @class = "alert alert-error" })

        <div class="form-actions">
            <div class="pull-right">
                <button type="reset" class="btn btn-inverse">@SR.Shared_Reset</button>
                <button type="submit" class="btn btn-primary">@SR.Shared_Create</button>
            </div>
        </div>
    }
</div>
